<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3D散点图</title>
    <link rel="stylesheet" href="../../css/main.css">
    <script src="../../mapData/js/jquery.min.js"></script>
    <script type="text/javascript" src="../../js/echarts4.x/echarts.js"></script>
    <script type="text/javascript" src="../../js/echarts4.x/ECharts GL1.x.js"></script>
</head>
<body>
<div id="3DMap" style="height: 100%;width: 100%;float: left"></div>
</body>
<script type="text/javascript">
    /**
     * @javascript
     * @author 黄朋 by 2018-06-12
     * */
    let mapOption;// 将读取的mapOption设置为全局变量，避免在使用该对象的时候重复读取。
    let mapChart = echarts.init(document.getElementById('3DMap'));// 初始化echarts对象为mapChart
    let chengdutrajectory = [	 [[104.06, 30.67],[121.15, 31.89]],
                        [[104.06, 30.67],[109.781327, 39.608266]],
                        [[104.06, 30.67],[120.38, 37.35]],
                        [[104.06, 30.67],[122.207216, 29.985295]],
                        [[104.06, 30.67],[123.97, 47.33]],
                        [[104.06, 30.67],[120.13, 33.38]],
                        [[104.06, 30.67],[118.87, 42.28]],
                        [[104.06, 30.67],[120.33, 36.07]],
                        [[104.06, 30.67],[121.52, 36.89]],
                        [[104.06, 30.67],[102.188043, 38.520089]],
                        [[104.06, 30.67],[118.58, 24.93]],
                        [[104.06, 30.67],[120.53, 36.86]],
                        [[104.06, 30.67],[119.46, 35.42]],
                        [[104.06, 30.67],[119.97, 35.88]],
                        [[104.06, 30.67],[121.05, 32.08]],
                        [[104.06, 30.67],[91.11, 29.97]],
                        [[104.06, 30.67],[112.02, 22.93]],
                        [[104.06, 30.67],[116.1, 24.55]],
                        [[104.06, 30.67],[122.05, 37.2]],
                        [[104.06, 30.67],[121.48, 31.22]],
                        [[104.06, 30.67],[101.718637, 26.582347]],
                        [[104.06, 30.67],[122.1, 37.5]],
                        [[104.06, 30.67],[117.93, 40.97]],
                        [[104.06, 30.67],[118.1, 24.46]],
                        [[104.06, 30.67],[115.375279, 22.786211]],
                        [[104.06, 30.67],[116.63, 23.68]],
                        [[104.06, 30.67],[124.37, 40.13]],
                        [[104.06, 30.67],[121.1, 31.45]],
                        [[104.06, 30.67],[103.79, 25.51]],
                        [[104.06, 30.67],[121.39, 37.52]],
                        [[104.06, 30.67],[119.3, 26.08]],
                        [[104.06, 30.67],[121.979603, 39.627114]],
                        [[104.06, 30.67],[120.45, 36.38]],
                        [[104.06, 30.67],[123.97, 41.97]],
                        [[104.06, 30.67],[102.52, 24.35]],
                        [[104.06, 30.67],[114.87, 40.82]],
                        [[104.06, 30.67],[113.57, 37.85]],
                        [[104.06, 30.67],[119.942327, 37.177017]],
                        [[104.06, 30.67],[120.1, 30.86]],
                        [[104.06, 30.67],[116.69, 23.39]],
                        [[104.06, 30.67],[120.95, 31.39]],
                        [[104.06, 30.67],[121.56, 29.86]],
                        [[104.06, 30.67],[110.359377, 21.270708]],
                        [[104.06, 30.67],[116.35, 23.55]],
                        [[104.06, 30.67],[122.41, 37.16]],
                        [[104.06, 30.67],[119.16, 34.59]],
                        [[104.06, 30.67],[120.836932, 40.711052]],
                        [[104.06, 30.67],[120.74, 31.64]],
                        [[104.06, 30.67],[113.75, 23.04]],
                        [[104.06, 30.67],[114.68, 23.73]],
                        [[104.06, 30.67],[119.15, 33.5]],
                        [[104.06, 30.67],[119.9, 32.49]],
                        [[104.06, 30.67],[108.33, 22.84]],
                        [[104.06, 30.67],[122.18, 40.65]],
                        [[104.06, 30.67],[114.4, 23.09]],
                        [[104.06, 30.67],[120.26, 31.91]],
                        [[104.06, 30.67],[120.75, 37.8]],
                        [[104.06, 30.67],[113.62, 24.84]],
                        [[104.06, 30.67],[98.289152, 39.77313]],
                        [[104.06, 30.67],[113.23, 23.16]],
                        [[104.06, 30.67],[109.47, 36.6]],
                        [[104.06, 30.67],[112.53, 37.87]],
                        [[104.06, 30.67],[113.01, 23.7]],
                        [[104.06, 30.67],[113.38, 22.52]],
                        [[104.06, 30.67],[102.73, 25.04]],
                        [[104.06, 30.67],[118.73, 36.86]],
                        [[104.06, 30.67],[122.070714, 41.119997]],
                        [[104.06, 30.67],[113.08, 36.18]],
                        [[104.06, 30.67],[114.07, 22.62]],
                        [[104.06, 30.67],[113.52, 22.3]],
                        [[104.06, 30.67],[118.3, 33.96]],
                        [[104.06, 30.67],[108.72, 34.36]],
                        [[104.06, 30.67],[109.11, 35.09]],
                        [[104.06, 30.67],[119.97, 36.77]],
                        [[104.06, 30.67],[113.11, 23.05]],
                        [[104.06, 30.67],[110.35, 20.02]],
                        [[104.06, 30.67],[113.06, 22.61]],
                        [[104.06, 30.67],[117.53, 36.72]],
                        [[104.06, 30.67],[112.44, 23.05]],
                        [[104.06, 30.67],[121.62, 38.92]],
                        [[104.06, 30.67],[111.5, 36.08]],
                        [[104.06, 30.67],[120.63, 31.16]],
                        [[104.06, 30.67],[106.39, 39.04]],
                        [[104.06, 30.67],[123.38, 41.8]],
                        [[104.06, 30.67],[120.62, 31.32]],
                        [[104.06, 30.67],[110.88, 21.68]],
                        [[104.06, 30.67],[120.76, 30.77]],
                        [[104.06, 30.67],[125.35, 43.88]],
                        [[104.06, 30.67],[120.03336, 36.264622]],
                        [[104.06, 30.67],[106.27, 38.47]],
                        [[104.06, 30.67],[120.555821, 31.875428]],
                        [[104.06, 30.67],[111.19, 34.76]],
                        [[104.06, 30.67],[121.15, 41.13]],
                        [[104.06, 30.67],[115.89, 28.68]],
                        [[104.06, 30.67],[109.4, 24.33]],
                        [[104.06, 30.67],[109.511909, 18.252847]],
                        [[104.06, 30.67],[104.778442, 29.33903]],
                        [[104.06, 30.67],[126.57, 43.87]],
                        [[104.06, 30.67],[111.95, 21.85]],
                        [[104.06, 30.67],[105.39, 28.91]],
                        [[104.06, 30.67],[101.74, 36.56]],
                        [[104.06, 30.67],[104.56, 29.77]],
                        [[104.06, 30.67],[111.65, 40.82]],
                        [[104.06, 30.67],[104.06, 30.67]],
                        [[104.06, 30.67],[113.3, 40.12]],
                        [[104.06, 30.67],[119.44, 32.2]],
                        [[104.06, 30.67],[110.28, 25.29]],
                        [[104.06, 30.67],[110.479191, 29.117096]],
                        [[104.06, 30.67],[119.82, 31.36]],
                        [[104.06, 30.67],[109.12, 21.49]],
                        [[104.06, 30.67],[108.95, 34.27]],
                        [[104.06, 30.67],[119.56, 31.74]],
                        [[104.06, 30.67],[118.49, 37.46]],
                        [[104.06, 30.67],[129.58, 44.6]],
                        [[104.06, 30.67],[106.9, 27.7]],
                        [[104.06, 30.67],[120.58, 30.01]],
                        [[104.06, 30.67],[119.42, 32.39]],
                        [[104.06, 30.67],[119.95, 31.79]],
                        [[104.06, 30.67],[119.1, 36.62]],
                        [[104.06, 30.67],[106.54, 29.59]],
                        [[104.06, 30.67],[121.420757, 28.656386]],
                        [[104.06, 30.67],[118.78, 32.04]],
                        [[104.06, 30.67],[118.03, 37.36]],
                        [[104.06, 30.67],[106.71, 26.57]],
                        [[104.06, 30.67],[120.29, 31.59]],
                        [[104.06, 30.67],[123.73, 41.3]],
                        [[104.06, 30.67],[84.77, 45.59]],
                        [[104.06, 30.67],[109.5, 34.52]],
                        [[104.06, 30.67],[118.48, 31.56]],
                        [[104.06, 30.67],[107.15, 34.38]],
                        [[104.06, 30.67],[113.21, 35.24]],
                        [[104.06, 30.67],[119.16, 31.95]],
                        [[104.06, 30.67],[116.46, 39.92]],
                        [[104.06, 30.67],[117.2, 34.26]],
                        [[104.06, 30.67],[115.72, 37.72]],
                        [[104.06, 30.67],[110, 40.58]],
                        [[104.06, 30.67],[104.73, 31.48]],
                        [[104.06, 30.67],[87.68, 43.77]],
                        [[104.06, 30.67],[117.57, 34.86]],
                        [[104.06, 30.67],[120.19, 30.26]],
                        [[104.06, 30.67],[118.05, 36.78]],
                        [[104.06, 30.67],[122.85, 41.12]],
                        [[104.06, 30.67],[119.48, 31.43]],
                        [[104.06, 30.67],[86.06, 41.68]],
                        [[104.06, 30.67],[114.35, 36.1]],
                        [[104.06, 30.67],[114.35, 34.79]],
                        [[104.06, 30.67],[117, 36.65]],
                        [[104.06, 30.67],[104.37, 31.13]],
                        [[104.06, 30.67],[120.65, 28.01]],
                        [[104.06, 30.67],[115.97, 29.71]],
                        [[104.06, 30.67],[114.47, 36.6]],
                        [[104.06, 30.67],[119.72, 30.23]],
                        [[104.06, 30.67],[103.73, 36.03]],
                        [[104.06, 30.67],[116.83, 38.33]],
                        [[104.06, 30.67],[118.35, 35.05]],
                        [[104.06, 30.67],[106.110698, 30.837793]],
                        [[104.06, 30.67],[117.2, 39.13]],
                        [[104.06, 30.67],[119.95, 30.07]],
                        [[104.06, 30.67],[117.13, 36.18]],
                        [[104.06, 30.67],[120.23, 29.71]],
                        [[104.06, 30.67],[113.65, 34.76]],
                        [[104.06, 30.67],[126.63, 45.75]],
                        [[104.06, 30.67],[115.97, 36.45]],
                        [[104.06, 30.67],[118.38, 31.33]],
                        [[104.06, 30.67],[118.02, 39.63]],
                        [[104.06, 30.67],[113.29, 33.75]],
                        [[104.06, 30.67],[114.48, 37.05]],
                        [[104.06, 30.67],[116.29, 37.45]],
                        [[104.06, 30.67],[116.59, 35.38]],
                        [[104.06, 30.67],[112.239741, 30.335165]],
                        [[104.06, 30.67],[111.3, 30.7]],
                        [[104.06, 30.67],[120.06, 29.32]],
                        [[104.06, 30.67],[119.92, 28.45]],
                        [[104.06, 30.67],[112.44, 34.7]],
                        [[104.06, 30.67],[119.57, 39.95]],
                        [[104.06, 30.67],[113.16, 27.83]],
                        [[104.06, 30.67],[114.48, 38.03]],
                        [[104.06, 30.67],[117.67, 36.19]],
                        [[104.06, 30.67],[111.69, 29.05]],
                        [[104.06, 30.67],[115.48, 38.85]],
                        [[104.06, 30.67],[112.91, 27.87]],
                        [[104.06, 30.67],[119.64, 29.12]],
                        [[104.06, 30.67],[113.09, 29.37]],
                        [[104.06, 30.67],[113, 28.21]],
                        [[104.06, 30.67],[118.88, 28.97]],
                        [[104.06, 30.67],[116.7, 39.53]],
                        [[104.06, 30.67],[115.480656, 35.23375]],
                        [[104.06, 30.67],[117.27, 31.86]],
                        [[104.06, 30.67],[114.31, 30.52]],
                        [[104.06, 30.67],[125.03, 46.58]]
                    ];
    let taiyuantrajectory = [	 [[112.53, 37.87],[121.15, 31.89]],
                    [[112.53, 37.87],[109.781327, 39.608266]],
                    [[112.53, 37.87],[120.38, 37.35]],
                    [[112.53, 37.87],[122.207216, 29.985295]],
                    [[112.53, 37.87],[123.97, 47.33]],
                    [[112.53, 37.87],[120.13, 33.38]],
                    [[112.53, 37.87],[118.87, 42.28]],
                    [[112.53, 37.87],[120.33, 36.07]],
                    [[112.53, 37.87],[121.52, 36.89]],
                    [[112.53, 37.87],[102.188043, 38.520089]],
                    [[112.53, 37.87],[118.58, 24.93]],
                    [[112.53, 37.87],[120.53, 36.86]],
                    [[112.53, 37.87],[119.46, 35.42]],
                    [[112.53, 37.87],[119.97, 35.88]],
                    [[112.53, 37.87],[121.05, 32.08]],
                    [[112.53, 37.87],[91.11, 29.97]],
                    [[112.53, 37.87],[112.02, 22.93]],
                    [[112.53, 37.87],[116.1, 24.55]],
                    [[112.53, 37.87],[122.05, 37.2]],
                    [[112.53, 37.87],[121.48, 31.22]],
                    [[112.53, 37.87],[101.718637, 26.582347]],
                    [[112.53, 37.87],[122.1, 37.5]],
                    [[112.53, 37.87],[117.93, 40.97]],
                    [[112.53, 37.87],[118.1, 24.46]],
                    [[112.53, 37.87],[115.375279, 22.786211]],
                    [[112.53, 37.87],[116.63, 23.68]],
                    [[112.53, 37.87],[124.37, 40.13]],
                    [[112.53, 37.87],[121.1, 31.45]],
                    [[112.53, 37.87],[103.79, 25.51]],
                    [[112.53, 37.87],[121.39, 37.52]],
                    [[112.53, 37.87],[119.3, 26.08]],
                    [[112.53, 37.87],[121.979603, 39.627114]],
                    [[112.53, 37.87],[120.45, 36.38]],
                    [[112.53, 37.87],[123.97, 41.97]],
                    [[112.53, 37.87],[102.52, 24.35]],
                    [[112.53, 37.87],[114.87, 40.82]],
                    [[112.53, 37.87],[113.57, 37.85]],
                    [[112.53, 37.87],[119.942327, 37.177017]],
                    [[112.53, 37.87],[120.1, 30.86]],
                    [[112.53, 37.87],[116.69, 23.39]],
                    [[112.53, 37.87],[120.95, 31.39]],
                    [[112.53, 37.87],[121.56, 29.86]],
                    [[112.53, 37.87],[110.359377, 21.270708]],
                    [[112.53, 37.87],[116.35, 23.55]],
                    [[112.53, 37.87],[122.41, 37.16]],
                    [[112.53, 37.87],[119.16, 34.59]],
                    [[112.53, 37.87],[120.836932, 40.711052]],
                    [[112.53, 37.87],[120.74, 31.64]],
                    [[112.53, 37.87],[113.75, 23.04]],
                    [[112.53, 37.87],[114.68, 23.73]],
                    [[112.53, 37.87],[119.15, 33.5]],
                    [[112.53, 37.87],[119.9, 32.49]],
                    [[112.53, 37.87],[108.33, 22.84]],
                    [[112.53, 37.87],[122.18, 40.65]],
                    [[112.53, 37.87],[114.4, 23.09]],
                    [[112.53, 37.87],[120.26, 31.91]],
                    [[112.53, 37.87],[120.75, 37.8]],
                    [[112.53, 37.87],[113.62, 24.84]],
                    [[112.53, 37.87],[98.289152, 39.77313]],
                    [[112.53, 37.87],[113.23, 23.16]],
                    [[112.53, 37.87],[109.47, 36.6]],
                    [[112.53, 37.87],[112.53, 37.87]],
                    [[112.53, 37.87],[113.01, 23.7]],
                    [[112.53, 37.87],[113.38, 22.52]],
                    [[112.53, 37.87],[102.73, 25.04]],
                    [[112.53, 37.87],[118.73, 36.86]],
                    [[112.53, 37.87],[122.070714, 41.119997]],
                    [[112.53, 37.87],[113.08, 36.18]],
                    [[112.53, 37.87],[114.07, 22.62]],
                    [[112.53, 37.87],[113.52, 22.3]],
                    [[112.53, 37.87],[118.3, 33.96]],
                    [[112.53, 37.87],[108.72, 34.36]],
                    [[112.53, 37.87],[109.11, 35.09]],
                    [[112.53, 37.87],[119.97, 36.77]],
                    [[112.53, 37.87],[113.11, 23.05]],
                    [[112.53, 37.87],[110.35, 20.02]],
                    [[112.53, 37.87],[113.06, 22.61]],
                    [[112.53, 37.87],[117.53, 36.72]],
                    [[112.53, 37.87],[112.44, 23.05]],
                    [[112.53, 37.87],[121.62, 38.92]],
                    [[112.53, 37.87],[111.5, 36.08]],
                    [[112.53, 37.87],[120.63, 31.16]],
                    [[112.53, 37.87],[106.39, 39.04]],
                    [[112.53, 37.87],[123.38, 41.8]],
                    [[112.53, 37.87],[120.62, 31.32]],
                    [[112.53, 37.87],[110.88, 21.68]],
                    [[112.53, 37.87],[120.76, 30.77]],
                    [[112.53, 37.87],[125.35, 43.88]],
                    [[112.53, 37.87],[120.03336, 36.264622]],
                    [[112.53, 37.87],[106.27, 38.47]],
                    [[112.53, 37.87],[120.555821, 31.875428]],
                    [[112.53, 37.87],[111.19, 34.76]],
                    [[112.53, 37.87],[121.15, 41.13]],
                    [[112.53, 37.87],[115.89, 28.68]],
                    [[112.53, 37.87],[109.4, 24.33]],
                    [[112.53, 37.87],[109.511909, 18.252847]],
                    [[112.53, 37.87],[104.778442, 29.33903]],
                    [[112.53, 37.87],[126.57, 43.87]],
                    [[112.53, 37.87],[111.95, 21.85]],
                    [[112.53, 37.87],[105.39, 28.91]],
                    [[112.53, 37.87],[101.74, 36.56]],
                    [[112.53, 37.87],[104.56, 29.77]],
                    [[112.53, 37.87],[111.65, 40.82]],
                    [[112.53, 37.87],[112.53, 37.87]],
                    [[112.53, 37.87],[113.3, 40.12]],
                    [[112.53, 37.87],[119.44, 32.2]],
                    [[112.53, 37.87],[110.28, 25.29]],
                    [[112.53, 37.87],[110.479191, 29.117096]],
                    [[112.53, 37.87],[119.82, 31.36]],
                    [[112.53, 37.87],[109.12, 21.49]],
                    [[112.53, 37.87],[108.95, 34.27]],
                    [[112.53, 37.87],[119.56, 31.74]],
                    [[112.53, 37.87],[118.49, 37.46]],
                    [[112.53, 37.87],[129.58, 44.6]],
                    [[112.53, 37.87],[106.9, 27.7]],
                    [[112.53, 37.87],[120.58, 30.01]],
                    [[112.53, 37.87],[119.42, 32.39]],
                    [[112.53, 37.87],[119.95, 31.79]],
                    [[112.53, 37.87],[119.1, 36.62]],
                    [[112.53, 37.87],[106.54, 29.59]],
                    [[112.53, 37.87],[121.420757, 28.656386]],
                    [[112.53, 37.87],[118.78, 32.04]],
                    [[112.53, 37.87],[118.03, 37.36]],
                    [[112.53, 37.87],[106.71, 26.57]],
                    [[112.53, 37.87],[120.29, 31.59]],
                    [[112.53, 37.87],[123.73, 41.3]],
                    [[112.53, 37.87],[84.77, 45.59]],
                    [[112.53, 37.87],[109.5, 34.52]],
                    [[112.53, 37.87],[118.48, 31.56]],
                    [[112.53, 37.87],[107.15, 34.38]],
                    [[112.53, 37.87],[113.21, 35.24]],
                    [[112.53, 37.87],[119.16, 31.95]],
                    [[112.53, 37.87],[116.46, 39.92]],
                    [[112.53, 37.87],[117.2, 34.26]],
                    [[112.53, 37.87],[115.72, 37.72]],
                    [[112.53, 37.87],[110, 40.58]],
                    [[112.53, 37.87],[104.73, 31.48]],
                    [[112.53, 37.87],[87.68, 43.77]],
                    [[112.53, 37.87],[117.57, 34.86]],
                    [[112.53, 37.87],[120.19, 30.26]],
                    [[112.53, 37.87],[118.05, 36.78]],
                    [[112.53, 37.87],[122.85, 41.12]],
                    [[112.53, 37.87],[119.48, 31.43]],
                    [[112.53, 37.87],[86.06, 41.68]],
                    [[112.53, 37.87],[114.35, 36.1]],
                    [[112.53, 37.87],[114.35, 34.79]],
                    [[112.53, 37.87],[117, 36.65]],
                    [[112.53, 37.87],[104.37, 31.13]],
                    [[112.53, 37.87],[120.65, 28.01]],
                    [[112.53, 37.87],[115.97, 29.71]],
                    [[112.53, 37.87],[114.47, 36.6]],
                    [[112.53, 37.87],[119.72, 30.23]],
                    [[112.53, 37.87],[103.73, 36.03]],
                    [[112.53, 37.87],[116.83, 38.33]],
                    [[112.53, 37.87],[118.35, 35.05]],
                    [[112.53, 37.87],[106.110698, 30.837793]],
                    [[112.53, 37.87],[117.2, 39.13]],
                    [[112.53, 37.87],[119.95, 30.07]],
                    [[112.53, 37.87],[117.13, 36.18]],
                    [[112.53, 37.87],[120.23, 29.71]],
                    [[112.53, 37.87],[113.65, 34.76]],
                    [[112.53, 37.87],[126.63, 45.75]],
                    [[112.53, 37.87],[115.97, 36.45]],
                    [[112.53, 37.87],[118.38, 31.33]],
                    [[112.53, 37.87],[118.02, 39.63]],
                    [[112.53, 37.87],[113.29, 33.75]],
                    [[112.53, 37.87],[114.48, 37.05]],
                    [[112.53, 37.87],[116.29, 37.45]],
                    [[112.53, 37.87],[116.59, 35.38]],
                    [[112.53, 37.87],[112.239741, 30.335165]],
                    [[112.53, 37.87],[111.3, 30.7]],
                    [[112.53, 37.87],[120.06, 29.32]],
                    [[112.53, 37.87],[119.92, 28.45]],
                    [[112.53, 37.87],[112.44, 34.7]],
                    [[112.53, 37.87],[119.57, 39.95]],
                    [[112.53, 37.87],[113.16, 27.83]],
                    [[112.53, 37.87],[114.48, 38.03]],
                    [[112.53, 37.87],[117.67, 36.19]],
                    [[112.53, 37.87],[111.69, 29.05]],
                    [[112.53, 37.87],[115.48, 38.85]],
                    [[112.53, 37.87],[112.91, 27.87]],
                    [[112.53, 37.87],[119.64, 29.12]],
                    [[112.53, 37.87],[113.09, 29.37]],
                    [[112.53, 37.87],[113, 28.21]],
                    [[112.53, 37.87],[118.88, 28.97]],
                    [[112.53, 37.87],[116.7, 39.53]],
                    [[112.53, 37.87],[115.480656, 35.23375]],
                    [[112.53, 37.87],[117.27, 31.86]],
                    [[112.53, 37.87],[114.31, 30.52]],
                    [[112.53, 37.87],[125.03, 46.58]]];
    let piont = [
        {name:"海门",value:[121.15, 31.89,(Math.random() * 300).toFixed(2)]},
        {name:"鄂尔多斯",value:[109.781327, 39.608266,(Math.random() * 300).toFixed(2)]},
        {name:"招远",value:[120.38, 37.35,(Math.random() * 300).toFixed(2)]},
        {name:"舟山",value:[122.207216, 29.985295,(Math.random() * 300).toFixed(2)]},
        {name:"齐齐哈尔",value:[123.97, 47.33,(Math.random() * 300).toFixed(2)]},
        {name:"盐城",value:[120.13, 33.38,(Math.random() * 300).toFixed(2)]},
        {name:"赤峰",value:[118.87, 42.28,(Math.random() * 300).toFixed(2)]},
        {name:"青岛",value:[120.33, 36.07,(Math.random() * 300).toFixed(2)]},
        {name:"乳山",value:[121.52, 36.89,(Math.random() * 300).toFixed(2)]},
        {name:"金昌",value:[102.188043, 38.520089,(Math.random() * 300).toFixed(2)]},
        {name:"泉州",value:[118.58, 24.93,(Math.random() * 300).toFixed(2)]},
        {name:"莱西",value:[120.53, 36.86,(Math.random() * 300).toFixed(2)]},
        {name:"日照",value:[119.46, 35.42,(Math.random() * 300).toFixed(2)]},
        {name:"胶南",value:[119.97, 35.88,(Math.random() * 300).toFixed(2)]},
        {name:"南通",value:[121.05, 32.08,(Math.random() * 300).toFixed(2)]},
        {name:"拉萨",value:[91.11, 29.97,(Math.random() * 300).toFixed(2)]},
        {name:"云浮",value:[112.02, 22.93,(Math.random() * 300).toFixed(2)]},
        {name:"梅州",value:[116.1, 24.55,(Math.random() * 300).toFixed(2)]},
        {name:"文登",value:[122.05, 37.2,(Math.random() * 300).toFixed(2)]},
        {name:"上海",value:[121.48, 31.22,(Math.random() * 300).toFixed(2)]},
        {name:"攀枝花",value:[101.718637, 26.582347,(Math.random() * 300).toFixed(2)]},
        {name:"威海",value:[122.1, 37.5,(Math.random() * 300).toFixed(2)]},
        {name:"承德",value:[117.93, 40.97,(Math.random() * 300).toFixed(2)]},
        {name:"厦门",value:[118.1, 24.46,(Math.random() * 300).toFixed(2)]},
        {name:"汕尾",value:[115.375279, 22.786211,(Math.random() * 300).toFixed(2)]},
        {name:"潮州",value:[116.63, 23.68,(Math.random() * 300).toFixed(2)]},
        {name:"丹东",value:[124.37, 40.13,(Math.random() * 300).toFixed(2)]},
        {name:"太仓",value:[121.1, 31.45,(Math.random() * 300).toFixed(2)]},
        {name:"曲靖",value:[103.79, 25.51,(Math.random() * 300).toFixed(2)]},
        {name:"烟台",value:[121.39, 37.52,(Math.random() * 300).toFixed(2)]},
        {name:"福州",value:[119.3, 26.08,(Math.random() * 300).toFixed(2)]},
        {name:"瓦房店",value:[121.979603, 39.627114,(Math.random() * 300).toFixed(2)]},
        {name:"即墨",value:[120.45, 36.38,(Math.random() * 300).toFixed(2)]},
        {name:"抚顺",value:[123.97, 41.97,(Math.random() * 300).toFixed(2)]},
        {name:"玉溪",value:[102.52, 24.35,(Math.random() * 300).toFixed(2)]},
        {name:"张家口",value:[114.87, 40.82,(Math.random() * 300).toFixed(2)]},
        {name:"阳泉",value:[113.57, 37.85,(Math.random() * 300).toFixed(2)]},
        {name:"莱州",value:[119.942327, 37.177017,(Math.random() * 300).toFixed(2)]},
        {name:"湖州",value:[120.1, 30.86,(Math.random() * 300).toFixed(2)]},
        {name:"汕头",value:[116.69, 23.39,(Math.random() * 300).toFixed(2)]},
        {name:"昆山",value:[120.95, 31.39,(Math.random() * 300).toFixed(2)]},
        {name:"宁波",value:[121.56, 29.86,(Math.random() * 300).toFixed(2)]},
        {name:"湛江",value:[110.359377, 21.270708,(Math.random() * 300).toFixed(2)]},
        {name:"揭阳",value:[116.35, 23.55,(Math.random() * 300).toFixed(2)]},
        {name:"荣成",value:[122.41, 37.16,(Math.random() * 300).toFixed(2)]},
        {name:"连云港",value:[119.16, 34.59,(Math.random() * 300).toFixed(2)]},
        {name:"葫芦岛",value:[120.836932, 40.711052,(Math.random() * 300).toFixed(2)]},
        {name:"常熟",value:[120.74, 31.64,(Math.random() * 300).toFixed(2)]},
        {name:"东莞",value:[113.75, 23.04,(Math.random() * 300).toFixed(2)]},
        {name:"河源",value:[114.68, 23.73,(Math.random() * 300).toFixed(2)]},
        {name:"淮安",value:[119.15, 33.5,(Math.random() * 300).toFixed(2)]},
        {name:"泰州",value:[119.9, 32.49,(Math.random() * 300).toFixed(2)]},
        {name:"南宁",value:[108.33, 22.84,(Math.random() * 300).toFixed(2)]},
        {name:"营口",value:[122.18, 40.65,(Math.random() * 300).toFixed(2)]},
        {name:"惠州",value:[114.4, 23.09,(Math.random() * 300).toFixed(2)]},
        {name:"江阴",value:[120.26, 31.91,(Math.random() * 300).toFixed(2)]},
        {name:"蓬莱",value:[120.75, 37.8,(Math.random() * 300).toFixed(2)]},
        {name:"韶关",value:[113.62, 24.84,(Math.random() * 300).toFixed(2)]},
        {name:"嘉峪关",value:[98.289152, 39.77313,(Math.random() * 300).toFixed(2)]},
        {name:"广州",value:[113.23, 23.16,(Math.random() * 300).toFixed(2)]},
        {name:"延安",value:[109.47, 36.6,(Math.random() * 300).toFixed(2)]},
        {name:"太原",value:[112.53, 37.87,(Math.random() * 300).toFixed(2)]},
        {name:"清远",value:[113.01, 23.7,(Math.random() * 300).toFixed(2)]},
        {name:"中山",value:[113.38, 22.52,(Math.random() * 300).toFixed(2)]},
        {name:"昆明",value:[102.73, 25.04,(Math.random() * 300).toFixed(2)]},
        {name:"寿光",value:[118.73, 36.86,(Math.random() * 300).toFixed(2)]},
        {name:"盘锦",value:[122.070714, 41.119997,(Math.random() * 300).toFixed(2)]},
        {name:"长治",value:[113.08, 36.18,(Math.random() * 300).toFixed(2)]},
        {name:"深圳",value:[114.07, 22.62,(Math.random() * 300).toFixed(2)]},
        {name:"珠海",value:[113.52, 22.3,(Math.random() * 300).toFixed(2)]},
        {name:"宿迁",value:[118.3, 33.96,(Math.random() * 300).toFixed(2)]},
        {name:"咸阳",value:[108.72, 34.36,(Math.random() * 300).toFixed(2)]},
        {name:"铜川",value:[109.11, 35.09,(Math.random() * 300).toFixed(2)]},
        {name:"平度",value:[119.97, 36.77,(Math.random() * 300).toFixed(2)]},
        {name:"佛山",value:[113.11, 23.05,(Math.random() * 300).toFixed(2)]},
        {name:"海口",value:[110.35, 20.02,(Math.random() * 300).toFixed(2)]},
        {name:"江门",value:[113.06, 22.61,(Math.random() * 300).toFixed(2)]},
        {name:"章丘",value:[117.53, 36.72,(Math.random() * 300).toFixed(2)]},
        {name:"肇庆",value:[112.44, 23.05,(Math.random() * 300).toFixed(2)]},
        {name:"大连",value:[121.62, 38.92,(Math.random() * 300).toFixed(2)]},
        {name:"临汾",value:[111.5, 36.08,(Math.random() * 300).toFixed(2)]},
        {name:"吴江",value:[120.63, 31.16,(Math.random() * 300).toFixed(2)]},
        {name:"石嘴山",value:[106.39, 39.04,(Math.random() * 300).toFixed(2)]},
        {name:"沈阳",value:[123.38, 41.8,(Math.random() * 300).toFixed(2)]},
        {name:"苏州",value:[120.62, 31.32,(Math.random() * 300).toFixed(2)]},
        {name:"茂名",value:[110.88, 21.68,(Math.random() * 300).toFixed(2)]},
        {name:"嘉兴",value:[120.76, 30.77,(Math.random() * 300).toFixed(2)]},
        {name:"长春",value:[125.35, 43.88,(Math.random() * 300).toFixed(2)]},
        {name:"胶州",value:[120.03336, 36.264622,(Math.random() * 300).toFixed(2)]},
        {name:"银川",value:[106.27, 38.47,(Math.random() * 300).toFixed(2)]},
        {name:"张家港",value:[120.555821, 31.875428,(Math.random() * 300).toFixed(2)]},
        {name:"三门峡",value:[111.19, 34.76,(Math.random() * 300).toFixed(2)]},
        {name:"锦州",value:[121.15, 41.13,(Math.random() * 300).toFixed(2)]},
        {name:"南昌",value:[115.89, 28.68,(Math.random() * 300).toFixed(2)]},
        {name:"柳州",value:[109.4, 24.33,(Math.random() * 300).toFixed(2)]},
        {name:"三亚",value:[109.511909, 18.252847,(Math.random() * 300).toFixed(2)]},
        {name:"自贡",value:[104.778442, 29.33903,(Math.random() * 300).toFixed(2)]},
        {name:"吉林",value:[126.57, 43.87,(Math.random() * 300).toFixed(2)]},
        {name:"阳江",value:[111.95, 21.85,(Math.random() * 300).toFixed(2)]},
        {name:"泸州",value:[105.39, 28.91,(Math.random() * 300).toFixed(2)]},
        {name:"西宁",value:[101.74, 36.56,(Math.random() * 300).toFixed(2)]},
        {name:"宜宾",value:[104.56, 29.77,(Math.random() * 300).toFixed(2)]},
        {name:"呼和浩特",value:[111.65, 40.82,(Math.random() * 300).toFixed(2)]},
        {name:"成都",value:[104.06, 30.67,(Math.random() * 300).toFixed(2)]},
        {name:"大同",value:[113.3, 40.12,(Math.random() * 300).toFixed(2)]},
        {name:"镇江",value:[119.44, 32.2,(Math.random() * 300).toFixed(2)]},
        {name:"桂林",value:[110.28, 25.29,(Math.random() * 300).toFixed(2)]},
        {name:"张家界",value:[110.479191, 29.117096,(Math.random() * 300).toFixed(2)]},
        {name:"宜兴",value:[119.82, 31.36,(Math.random() * 300).toFixed(2)]},
        {name:"北海",value:[109.12, 21.49,(Math.random() * 300).toFixed(2)]},
        {name:"西安",value:[108.95, 34.27,(Math.random() * 300).toFixed(2)]},
        {name:"金坛",value:[119.56, 31.74,(Math.random() * 300).toFixed(2)]},
        {name:"东营",value:[118.49, 37.46,(Math.random() * 300).toFixed(2)]},
        {name:"牡丹江",value:[129.58, 44.6,(Math.random() * 300).toFixed(2)]},
        {name:"遵义",value:[106.9, 27.7,(Math.random() * 300).toFixed(2)]},
        {name:"绍兴",value:[120.58, 30.01,(Math.random() * 300).toFixed(2)]},
        {name:"扬州",value:[119.42, 32.39,(Math.random() * 300).toFixed(2)]},
        {name:"常州",value:[119.95, 31.79,(Math.random() * 300).toFixed(2)]},
        {name:"潍坊",value:[119.1, 36.62,(Math.random() * 300).toFixed(2)]},
        {name:"重庆",value:[106.54, 29.59,(Math.random() * 300).toFixed(2)]},
        {name:"台州",value:[121.420757, 28.656386,(Math.random() * 300).toFixed(2)]},
        {name:"南京",value:[118.78, 32.04,(Math.random() * 300).toFixed(2)]},
        {name:"滨州",value:[118.03, 37.36,(Math.random() * 300).toFixed(2)]},
        {name:"贵阳",value:[106.71, 26.57,(Math.random() * 300).toFixed(2)]},
        {name:"无锡",value:[120.29, 31.59,(Math.random() * 300).toFixed(2)]},
        {name:"本溪",value:[123.73, 41.3,(Math.random() * 300).toFixed(2)]},
        {name:"克拉玛依",value:[84.77, 45.59,(Math.random() * 300).toFixed(2)]},
        {name:"渭南",value:[109.5, 34.52,(Math.random() * 300).toFixed(2)]},
        {name:"马鞍山",value:[118.48, 31.56,(Math.random() * 300).toFixed(2)]},
        {name:"宝鸡",value:[107.15, 34.38,(Math.random() * 300).toFixed(2)]},
        {name:"焦作",value:[113.21, 35.24,(Math.random() * 300).toFixed(2)]},
        {name:"句容",value:[119.16, 31.95,(Math.random() * 300).toFixed(2)]},
        {name:"北京",value:[116.46, 39.92,(Math.random() * 300).toFixed(2)]},
        {name:"徐州",value:[117.2, 34.26,(Math.random() * 300).toFixed(2)]},
        {name:"衡水",value:[115.72, 37.72,(Math.random() * 300).toFixed(2)]},
        {name:"包头",value:[110, 40.58,(Math.random() * 300).toFixed(2)]},
        {name:"绵阳",value:[104.73, 31.48,(Math.random() * 300).toFixed(2)]},
        {name:"乌鲁木齐",value:[87.68, 43.77,(Math.random() * 300).toFixed(2)]},
        {name:"枣庄",value:[117.57, 34.86,(Math.random() * 300).toFixed(2)]},
        {name:"杭州",value:[120.19, 30.26,(Math.random() * 300).toFixed(2)]},
        {name:"淄博",value:[118.05, 36.78,(Math.random() * 300).toFixed(2)]},
        {name:"鞍山",value:[122.85, 41.12,(Math.random() * 300).toFixed(2)]},
        {name:"溧阳",value:[119.48, 31.43,(Math.random() * 300).toFixed(2)]},
        {name:"库尔勒",value:[86.06, 41.68,(Math.random() * 300).toFixed(2)]},
        {name:"安阳",value:[114.35, 36.1,(Math.random() * 300).toFixed(2)]},
        {name:"开封",value:[114.35, 34.79,(Math.random() * 300).toFixed(2)]},
        {name:"济南",value:[117, 36.65,(Math.random() * 300).toFixed(2)]},
        {name:"德阳",value:[104.37, 31.13,(Math.random() * 300).toFixed(2)]},
        {name:"温州",value:[120.65, 28.01,(Math.random() * 300).toFixed(2)]},
        {name:"九江",value:[115.97, 29.71,(Math.random() * 300).toFixed(2)]},
        {name:"邯郸",value:[114.47, 36.6,(Math.random() * 300).toFixed(2)]},
        {name:"临安",value:[119.72, 30.23,(Math.random() * 300).toFixed(2)]},
        {name:"兰州",value:[103.73, 36.03,(Math.random() * 300).toFixed(2)]},
        {name:"沧州",value:[116.83, 38.33,(Math.random() * 300).toFixed(2)]},
        {name:"临沂",value:[118.35, 35.05,(Math.random() * 300).toFixed(2)]},
        {name:"南充",value:[106.110698, 30.837793,(Math.random() * 300).toFixed(2)]},
        {name:"天津",value:[117.2, 39.13,(Math.random() * 300).toFixed(2)]},
        {name:"富阳",value:[119.95, 30.07,(Math.random() * 300).toFixed(2)]},
        {name:"泰安",value:[117.13, 36.18,(Math.random() * 300).toFixed(2)]},
        {name:"诸暨",value:[120.23, 29.71,(Math.random() * 300).toFixed(2)]},
        {name:"郑州",value:[113.65, 34.76,(Math.random() * 300).toFixed(2)]},
        {name:"哈尔滨",value:[126.63, 45.75,(Math.random() * 300).toFixed(2)]},
        {name:"聊城",value:[115.97, 36.45,(Math.random() * 300).toFixed(2)]},
        {name:"芜湖",value:[118.38, 31.33,(Math.random() * 300).toFixed(2)]},
        {name:"唐山",value:[118.02, 39.63,(Math.random() * 300).toFixed(2)]},
        {name:"平顶山",value:[113.29, 33.75,(Math.random() * 300).toFixed(2)]},
        {name:"邢台",value:[114.48, 37.05,(Math.random() * 300).toFixed(2)]},
        {name:"德州",value:[116.29, 37.45,(Math.random() * 300).toFixed(2)]},
        {name:"济宁",value:[116.59, 35.38,(Math.random() * 300).toFixed(2)]},
        {name:"荆州",value:[112.239741, 30.335165,(Math.random() * 300).toFixed(2)]},
        {name:"宜昌",value:[111.3, 30.7,(Math.random() * 300).toFixed(2)]},
        {name:"义乌",value:[120.06, 29.32,(Math.random() * 300).toFixed(2)]},
        {name:"丽水",value:[119.92, 28.45,(Math.random() * 300).toFixed(2)]},
        {name:"洛阳",value:[112.44, 34.7,(Math.random() * 300).toFixed(2)]},
        {name:"秦皇岛",value:[119.57, 39.95,(Math.random() * 300).toFixed(2)]},
        {name:"株洲",value:[113.16, 27.83,(Math.random() * 300).toFixed(2)]},
        {name:"石家庄",value:[114.48, 38.03,(Math.random() * 300).toFixed(2)]},
        {name:"莱芜",value:[117.67, 36.19,(Math.random() * 300).toFixed(2)]},
        {name:"常德",value:[111.69, 29.05,(Math.random() * 300).toFixed(2)]},
        {name:"保定",value:[115.48, 38.85,(Math.random() * 300).toFixed(2)]},
        {name:"湘潭",value:[112.91, 27.87,(Math.random() * 300).toFixed(2)]},
        {name:"金华",value:[119.64, 29.12,(Math.random() * 300).toFixed(2)]},
        {name:"岳阳",value:[113.09, 29.37,(Math.random() * 300).toFixed(2)]},
        {name:"长沙",value:[113, 28.21,(Math.random() * 300).toFixed(2)]},
        {name:"衢州",value:[118.88, 28.97,(Math.random() * 300).toFixed(2)]},
        {name:"廊坊",value:[116.7, 39.53,(Math.random() * 300).toFixed(2)]},
        {name:"菏泽",value:[115.480656, 35.23375,(Math.random() * 300).toFixed(2)]},
        {name:"合肥",value:[117.27, 31.86,(Math.random() * 300).toFixed(2)]},
        {name:"武汉",value:[114.31, 30.52,(Math.random() * 300).toFixed(2)]},
        {name:"大庆",value:[125.03, 46.58,(Math.random() * 300).toFixed(2)]}];
    /*
     * 读取echarts Option配置数据
     */
    $(function()
    {
        getOption();
    });
    /*
     * 读取echarts Option配置数据
     */
    function getOption()
    {
        // echarts配置json文件的地址
        var chartUrl = "../../config/scatter_migrationfigure_3d.json";
        // 读取echartsoption配置
        $.get(chartUrl, function (option)
        {
            if(option != null)
            {
                mapOption = option;
                getMap();
            }
        });
    }
    /*
     * 读取geo地图数据并注入echarts api
     */
    function getMap()
    {
        // 数据加载项，增强用户体验
        //mapChart.showLoading();
        // 地图json文件的地址
        var mapUrl = "../../mapData/map/json/china.json";
        // 读取geo地图数据
        $.get(mapUrl, function (json)
        {
            echarts.registerMap("china", json); // 注册地图
            mapOption.geo3D.map = "china"; // 设置geo坐标系地图名称
            mapOption.legend.data = ["成都","太原","scatter3D"];//图例data设置
            mapOption.legend.x = "right";//图例x轴位置 左、中、右英文
            mapOption.legend.y = "top";//图例y轴位置 上、中、下英文
            mapOption.legend.selected = {"成都":true,"太原":false} //设置图例默认选中值
            /*
             * 3d系列一业务数据和图标设置
             */
            mapOption.series[0].type = "lines3D";//自定义图标类型，此处可以设置bar3D、line3D、line3D
            mapOption.series[0].name = "成都";// 自定义图列名称。
            mapOption.series[0].data = chengdutrajectory; // 设置业务数据
            /*
             * 3d系列二业务数据和图标设置
             */
            mapOption.series[1].type = "lines3D";//自定义图标类型，此处可以设置bar3D、line3D、line3D
            mapOption.series[1].name = "太原";// 自定义图列名称。
            mapOption.series[1].data = taiyuantrajectory; // 设置业务数据
            /*
             * 3d系列三业务数据和图标设置
             */
            mapOption.series[2].type = "scatter3D";//自定义图标类型，此处可以设置scatter3D、effectScatte3D
            mapOption.series[2].name = "scatter3D";// 自定义图列名称
            mapOption.series[2].symbol = "emptyCircle";
            mapOption.series[2].symbolSize = 8;
            mapOption.tooltip.formatter = displayContent;// 设置内容展示
            mapOption.series[2].data = piont; // 设置业务数据

            mapChart.setOption(mapOption);// 把加工好的mapOption注入echarts api
            // 数据加载项，增强用户体验
            //mapChart.hideLoading();
        });
    }
    /*
     * 设置覆盖物鼠标移上去的展示形式，此处可以自定义，可以做成弹出框等等
     */
    var displayContent = function (params)
    {
        return params.name + ":" + params.value[2];
    }

    //setInterval(getMap, 5000);
</script>
</html>